import 'package:dk_flutter_base/dk_core.dart';

class ErrorInfoBean {
  ///错误信息-参考[runZoned]
  String error;

  ///堆栈信息-参考[runZoned]
  String stackTrace;

  ErrorInfoBean({this.error, this.stackTrace}) {
    this.error ??= "";
    this.stackTrace ??= "";
  }

  ErrorInfoBean.fromJson(Map<String, dynamic> json) {
    this.error = json['error'];
    this.stackTrace = json['stackTrace'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['error'] = this.error;
    data['stackTrace'] = this.stackTrace;
    return data;
  }
}
